Part Number Hot Search : 
EM482 IS608X IR3081A MC7909CT CS4299 41YCPH W55FC200 683ML
Product Description
Full Text Search
 

To Download AS504009 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  austriamicrosystems ag is now ams ag the technical content of this austriamicrosystems datasheet is still valid. contact information: headquarters: ams ag tobelbaderstrasse 30 8141 unterpremstaetten, austria tel: +43 (0) 3136 500 0 e - mail: ams_sales @ams.com please visit our website at www.ams.com
www.austriamicrosystems.com revision 2.10 1 - 33 1 general description the as5040 is a contactles s magnetic rotary encoder for accurate angular measurement over a full turn of 360. it is a system-on-chip , combining integrated hall elements, analog front end and digital signal processing in a single device. to measure the angle, only a simple two-pole magnet, rotating over the center of the chip, is required. the magnet may be placed above or below the ic. the absolute angle measurem ent provides instant indication of the magnet?s angular position with a resolution of 0.35 = 1024 positions per revolution. this digital data is available as a serial bit stream and as a pwm signal. furthermore, a user-programmable incremental output is available, making the chip suitable for replacement of various optical encoders. an internal voltage regulator allows the as5040 to operate at either 3.3 v or 5 v supplies. figure 1: typical arrangem ent of as5040 and magnet benefits ? complete system-on-chip ? flexible system solution provides absolute, pwm and incremental outputs simultaneously ? ideal for applications in harsh environments due to contactless position sensing ? tolerant to magnet misalignment and airgap variations ? no temperature compensation necessary ? no calibration required 2 key features ? contactless high resolution rotational position encoding over a full turn of 360 degrees ? two digital 10bit absolute outputs: - serial interface and - pulse width modulated (pwm) output ? three incremental output modes: - quadrature a/b and index output signal - step / direction and index output signal - 3-phase commutation for brushless dc motors - 10, 9, 8 or 7 bit user programmable resolution ? user programmable zero / index position ? failure detection mode for magnet placement monitoring and loss of power supply ? rotational speeds up to 30,000 rpm ? push button functionalit y detects movement of magnet in z-axis ? serial read-out of multiple interconnected as5040 devices using daisy chain mode ? wide temperature range: - 40c to + 125c ? fully automotive qualified to aec-q100, grade 1 ? small pb-free package: ssop 16 (5.3mm x 6.2mm) 3 applications ? industrial applications: - contactless rotary position sensing - robotics - brushless dc motor commutation - power tools ? automotive applications: - steering wheel position sensing - gas pedal position sensing - transmission gearbox encoder - headlight position control - power seat position indicator ? office equipment: printers, scanners, copiers ? replacement of optical encoders ? front panel rotary switches ? replacement of potentiometers as5040 10bit 360 programmable magnetic rotary encoder data sheet ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 2 - 33 4 pin configuration figure 2: pin configuration ssop16 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 magincn magdecn a_lsb_u b_dir_v nc index_w vss prog do clk csn pwm_lsb nc nc vdd3v3 vdd5v as5040 pin description table 2 shows the description of each pin of the standard ssop16 package (shrink small outline package, 16 leads, body size: 5.3mm x 6.2mmm; see figure 2). pins 7, 15 and 16 are supply pins, pins 5, 13 and 14 are for internal use and must not be connected. pins 1 and 2 are the magnetic field c hange indicators, magincn and magdecn (ma gnetic field strength increase or decrease through variation of the dist ance between the magnet and the device). these outputs can be used to detect the valid magnetic field range. furt hermore those indicators can also be used for contact-less push-button functionality. pins 3, 4 and 6 are the incr emental pulse output pins. t he functionality of these pins can be configured through programming the one-time programmable (otp) register. table 1: pin assignment for the dif ferent incremental output modes output mode pin 3 pin 4 pin 6 pin 12 1.x: quadrature a b index pwm 2.x:step/direction l sb direction index pwm 3.x: commutation u v w lsb mode 1.x: quadrature a/b output represents the default quadrature a/b signal mode. mode 2.x: step / direction output configures pin 3 to deliver up to 512 pulses (up to 1024 st ate changes) per revolution. it is equivalent to the lsb (least significant bit) of the absolute position value. pin 4 provides the information of the rotational direction. both modes (mode 1.x and mode 2. x) provide an index signal (1 pulse/revolut ion) with an adjustable width of one lsb or three lsb?s. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 3 - 33 table 2 pin description ssop16 pin symbol type description 1 magincn do_od magnet field mag nitude inc rease; active low, indicates a distance reduction between the magnet and the device surface. 2 magdecn do_od magnet field mag nitude dec rease; active low, indicates a distance increase between the device and the magnet. 3 a_lsb_u do mode1.x: quadrature a channel mode2.x: l east s ignificant b it mode3.x: u signal (phase1) 4 b_dir_v do mode1.x : quadrature b channel quarter period shift to channel a. mode2.x: dir ection of rotation mode3.x: v signal (phase2) 5 nc - must be left unconnected 6 index_w do mode1.x and mode2.x : index signal indicates the absolute zero position mode3.x : w signal (phase3) 7 vss s negative supply voltage (gnd) 8 prog di_pd otp prog ramming input and data input for daisy chain mode. internal pull-down resistor (~74k ). may be connected to vss if programming is not used 9 do do_t d ata o utput of synchronous serial interface 10 clk di, st cl oc k input of synchronous serial interface; schmitt-trigger input 11 csn di_pu, st c hip s elect, active low; schmitt-trigger input, internal pull-up resistor (~50k ) connect to vss in incremental mode (see 0) 12 pwm_lsb do pulse w idth m odulation of approx. 1khz; lsb in mode3.x 13 nc - must be left unconnected 14 nc - must be left unconnected 15 vdd3v3 s 3v-regulator output (see figure 19) 16 vdd5v s positive supply voltage 5 v do_od digital output open drain s supply pin do digital output di digital input di_pd digital input pull-down do_t digital output /tri-state di_pu digital input pull-up st schmitt-trigger input mode 3.x: brushless dc motor commutation mode in addition to the absolute encoder output over the ssi interface, this mode provides commutation signals for brushless dc motors with either one pole pair or two pole pair rotors. the commutation signals are usually provided by 3 discrete hall switches, which are no longer required, as the as5040 can fu lfill two tasks in parallel: absolute encoder + bldc motor commutation. in this mode, pin 12 provides the lsb output instead of the pwm (pulse-width-modulation) signal. pin 8 (prog) is also used to program the different incremental interface modes, the incremental resolution and the zero position into the otp (see page 18). this pin is also used as digital input to shift serial data through the device in daisy chain configuration, (see page 11). pin 11 chip select (csn; active low) selects a device within a network of as5040 encoders and initiates serial data transfer. a logic high at csn puts the data output pin (do) to tri-state and termina tes serial data transfer. this pin is also used for alignment mode (page 21) and programming mode (page 16). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 4 - 33 pin 12 allows a single wire output of the 10-bit absolute position value. the value is encoded into a pulse width modulated signal with 1s pulse width per step (1s to 1024s over a full turn). by using an external low pass filter, the digital pwm signal is converted into an analog voltage , allowing a direct replacement of potentiometers. 5 electrical characteristics absolute maximum rati ngs (non operating) stresses beyond those listed under ?absolute maximum ratings? may cause permanent damage to the device. these are stress ratings only. functional operation of the device at these or any other conditions beyond those indicated under ?operating conditions? is not implied. expos ure to absolute maximum rating conditions for extended periods may affect device reliability. parameter symbol min max unit note dc supply voltage at pin vdd5v vdd5v -0.3 7 v dc supply voltage at pin vdd3v3 vdd3v3 -0.3 5 v -0.3 vdd5v +0.3 pins magincn, magdecn, clk, csn, input pin voltage vin -0.3 7.5 v pin prog input current (latchup immunity) iscr -100 100 ma norm: jedec 78 electrostatic discharge esd 2 kv norm: mil 883 e method 3015 storage temperature tstrg -55 125 c min ? 67f ; max +257f body temperature (lead-free package) tbody 260 c t=20 to 40s, norm: ipc/jedec j- std-020c lead finish 100% sn ?matte tin? humidity non-condensing h 5 85 % operating conditions parameter symbol min typ max unit note ambient temperature t amb -40 125 c -40f?+257f supply current i supp 16 21 ma external supply voltage at pin vdd5v internal regulator output voltage at pin vdd3v3 vdd5v vdd3v3 4.5 3.0 5.0 3.3 5.5 3.6 v v 5v operation external supply voltage at pin vdd5v, vdd3v3 vdd5v vdd3v3 3.0 3.0 3.3 3.3 3.6 3.6 v v 3.3v operation (pins vdd5v and vdd3v3 connected) dc characteristics for digital inputs and outputs cmos schmitt-trigger inputs: clk, csn (csn = internal pull-up) (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min max unit note high level input voltage v ih 0.7 * vdd5v v normal operation low level input voltage v il 0.3 * vdd5v v schmitt trigger hysteresis v ion- v ioff 1 v -1 1 clk only input leakage current pull-up low level input current i leak i il -30 -100 a a csn only, vdd5v: 5.0v ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 5 - 33 cmos / program input: prog (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min max unit note high level input voltage v ih 0.7 * vdd5v 5 v high level input voltage v prog see ?programming conditions? v during programming low level input voltage v il 0.3 * vdd5v v pull-down high level input current i il 100 a vdd5v: 5.5v cmos output open drain: magincn, magdecn (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min max unit note low level output voltage v ol vss+0.4 v output current i o 4 2 ma vdd5v: 4.5v vdd5v: 3v open drain leakage current i oz 1 a cmos output: a, b, index, pwm (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min max unit note high level output voltage v oh vdd5v-0.5 v low level output voltage v ol vss+0.4 v output current i o 4 2 ma vdd5v: 4.5v vdd5v: 3v tristate cmos output: do (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min max unit note high level output voltage v oh vdd5v ?0.5 v low level output voltage v ol vss+0.4 v output current i o 4 2 ma vdd5v: 4.5v vdd5v: 3v tri-state leakage current i oz 1 a magnetic input specification (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) two-pole cylindrical diametrically magnetised source: parameter symbol min typ max unit note diameter d mag 4 6 mm thickness t mag 2.5 mm recommended magnet: ? 6mm x 2.5mm for cylindrical magnets magnetic input field amplitude b pk 45 75 mt required vertical component of the magnetic field strength on the die?s surface, measured along a concentric circle with a radius of 1.1mm ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 6 - 33 parameter symbol min typ max unit note magnetic offset b off 10 mt constant magnetic stray field field non-linearity 5 % including offset gradient f mag_abs 10 hz absolute mode: 600 rpm @ readout of 1024 positions (see table 6) input frequency (rotational speed of magnet) f mag_inc 500 hz incremental mode: no missing pulses at rotational speeds of up to 30,000 rpm (see table 6) 0.25 max. x-y offset between defined ic package center and magnet axis (see figure 21) displacement radius disp 0.485 mm max. x-y offset between chip center and magnet axis. chip placement tolerance 0.23 5 mm placement tolerance of chip within ic package (see figure 23) -0.12 ndfeb (neodymium iron boron) recommended magnet material and temperature drift -0.035 %/k smco (samarium cobalt) electrical system specifications (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min typ max unit note resolution res 10 bit 0.352 deg 7 bit 8 bit 9 bit 10 bit lsb 2.813 1.406 0.703 0.352 deg adjustable resolution only available for incremental output modes; least significant bit, minimum step integral non-linearity (optimum) inl opt 0.5 deg maximum error with respect to the best line fit. verified at optimum magnet placement, t amb =25 c. integral non-linearity (optimum) inl temp 0.9 deg maximum error with respect to the best line fit. verified at optimum magnet placement , t amb = -40 to +125c integral non-linearity inl 1.4 deg best line fit = (err max ? err min ) / 2 over displacement tolerance with 6mm diameter magnet, t amb = -40 to +125c differential non-linearity dnl 0.176 deg 10bit, no missing codes transition noise tn 0.12 deg rms rms equivalent to 1 sigma hysteresis hyst 0.704 deg incremental modes only power-on reset thresholds on voltage; 300mv typ. hysteresis off voltage; 300mv typ. hysteresis v on v off 1.37 1.08 2.2 1.9 2.9 2.6 v dc supply voltage 3.3v (vdd3v3) dc supply voltage 3.3v (vdd3v3) power-up time t pwrup 50 ms until offset compensation finished system propagation delay absolute output t delay 48 s includes delay of adc and dsp ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 7 - 33 parameter symbol min typ max unit note system propagation delay incremental output 192 s calculation over two samples 9.90 10.42 10.94 internal sampling rate, t amb = 25c sampling rate for absolute output f s 9.38 10.42 11.46 khz internal sampling rate, t amb = -40 to +125c read-out frequency clk 1 mhz max. clock frequency to read out serial data figure 3: integral and differential n on-linearity example (exaggerated curve) 1 80 360 0 0 512 1023 0 1 2 0.35 inl ideal curve actual curve tn 512 1023 dnl+1lsb [degrees] integral non-linearity (inl) is the maximum deviati on between actual position and indicated position. differential non-linearity (dnl) is the maximum deviation of the step length from one position to the next. transition noise (tn) is the repeat ability of an indicated position. timing characteristics synchronous serial interface (ssi) (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min typ max unit note data output activated (logic high) t do active 100 ns time between falling edge of csn and data output activated first data shifted to output register t clk fe 500 ns time between falling edge of csn and first falling edge of clk start of data output t clk / 2 500 ns rising edge of clk shifts out one bit at a time data output valid t do valid 357 413 ns time between rising edge of clk and data output valid data output tristate t do tristate 100 ns after the last bit do changes back to ?tristate? pulse width of csn t csn 500 ns csn = high; to initiate read-out of next angular position ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 8 - 33 parameter symbol min typ max unit note read-out frequency f clk >0 1 mhz clock frequency to read out serial data pulse width modulation output (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min typ max unit note 0.927 0.976 1.024 signal period = 1025s 5% at t amb = 25c pwm frequency f pwm 0.878 0.976 1.074 khz =1025s 10% at t amb = -40 to +125c minimum pulse width pw min 0.90 1 1.10 s position 0d; angle 0 degree maximum pulse width pw max 922 1024 1126 s position 1023d; angle 359.65 degree incremental outputs (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min typ max unit note incremental outputs valid after power-up t incremental outputs valid 500 ns time between first falling edge of csn after power-up and valid incremental outputs directional indication valid t dir valid 500 ns time between rising or falling edge of lsb output and valid directional indication programming conditions (operating conditions: t amb = -40 to +125c, vdd5v = 3.0-3.6v (3v operation) vdd5v = 4.5-5.5v (5v operation) unless otherwise noted) parameter symbol min typ max unit note programming enable time t prog enable 2 s time between rising edge at prog pin and rising edge of csn write data start t data in 2 s write data valid t data in valid 250 ns write data at the rising edge of clk prog load programming data t load prog 3 s rise time of v prog before clk prog t prgr 0 s hold time of v prog after clk prog t prgh 0 5 s write data ? programming clk prog clk prog 250 khz clk pulse width t prog 1.8 2 2.2 s during programming; 16 clock cycles hold time of vprog after programming t prog finished 2 s programmed data is available after next power-on programming voltage v prog 7.3 7.4 7.5 v must be switched off after zapping programming voltage off level v progoff 0 1 v line must be discharged to this level programming current i prog 130 ma during programming analog read clk clk aread 100 khz analog readback mode programmed zener voltage (log.1) v programmed 100 mv unprogrammed zener voltage (log. 0) v unprogrammed 1 v v ref -v prog during analog readback mode (see analog readback mode ) ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 9 - 33 6 functional description the as5040 is manufactured in a cmos standard process and uses a spinning current hall technology for sensing the magnetic field distribution acro ss the surface of the chip. the integrated hall elements are plac ed around the center of t he device and deliver a volt age representation of the magnetic field at the surface of the ic. through sigma-delta analog / digital conversion and dig ital signal-processing (dsp) algorithms, the as5040 provides accurate high-resolution absolute angular position information. for this purpose a coordinate rotati on digital computer (cordic) calculates the angle and the magnitude of the hall array signals. the dsp is also used to provide digital information at the outputs m agi ncn and m agde cn that indicate movements of the used magnet towards or away from the device?s surface. a small low cost diametrically magnetiz ed (two-pole) standard magnet provides the angular position information (see figure 20). the as5040 senses the orient ation of the magnetic field and calculates a 10-bit binary code. this code can be accessed via a synchronous serial interface (ssi). in addition, an absolute angular representat ion is given by a pulse width modulated signal at pin 12 (pwm). besides the absolute angular position information the device simultaneously provides incremental output signals. the various incremental output modes can be selected by programming the ot p mode register bits (see page 19). as long as no programming voltage is applied to pin prog, the new setting may be overwritten at any time and will be reset to default when power is turned off. to make the setting permanent, the otp regi ster must be programmed (see figure 15). the default setting is a quadrature a/b mode includi ng the index signal with a pulse width of 1 lsb. the index signal is logic high at the user programmable zero position. the as5040 is tolerant to magnet misalignment and magnetic stray fields due to differential measurement technique and hall sensor conditioning circuitry. figure 4: as5040 block diagram ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 10 - 33 7 10-bit absolute angular position output synchronous serial interface (ssi) figure 5: synchronous serial interface with absolute angular position data even par csn clk do d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 18 1 6 cof lin ocf mag inc mag dec t do active t do tristate 1 d9 t clk fe t do valid t clk fe t csn t clk / 2 angular position data status bits if csn changes to logic low, data out (do) will change from high impedance (tri-state) to logic high and the read-out will be initiated. ? after a minimum time t clk fe, data is latched into the output shift r egister with the first falling edge of clk. ? each subsequent rising clk edge shifts out one bit of data. ? the serial word contains 16 bits, the first 10 bits ar e the angular information d[9:0 ], the subsequent 6 bits contain system information, about the validit y of data such as ocf, cof, lin, parity and magnetic field status (increase/decrease) . ? a subsequent measurement is initiated by a log. ?h igh? pulse at csn with a minimum duration of t csn. data content: d9:d0 absolute angular position data (msb is clocked out first) ocf ( o ffset c ompensation f inished), logic high indicates the finished offset compensation algorithm. for fast startup, this bit may be polled by the external microcontroller. as soon as this bit is set, the as5040 has completed the startup and the data is valid (see table 4) cof ( c ordic o ver f low), logic high indicates an out of range error in the cordic part. when th is bit is set, the data at d9:d0 is invalid. the absolute output maintains the last valid angular value. this alarm may be resolved by bringing the magnet within the x-y-z tolerance limits. lin ( lin earity alarm), logic high indicates that the input field generates a critical output linearity. when this bit is set, the data at d9:d0 may still be used, but can contain invalid data. this warning may be resolved by bringing the magnet within the x-y-z tolerance limits. magincn , ( mag nitude inc rease) becomes high, when the magnet is pushed towards the ic, thus the magnetic field strength is increasing. magdecn, ( mag nitude dec rease) becomes high, when the magnet is pu lled away from the ic, thus the magnetic field strength is decreasing. both signals high indicate a magnetic field that is out of the allowed range (see table 3). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 11 - 33 table 3: magnetic magnitude variation indicator mag incn mag decn description 0 0 no distance change; magnetic i nput field ok (in range, 45..75mt) 0 1 distance increase: pull-function. this state is dy namic, it is only active while the magnet is moving away from the chip in z-axis 1 0 distance decrease: push- function. this state is dynamic, it is only active while the magnet is moving towards the chip in z.-axis. 1 1 magnetic input field invalid ? out of range: <45mt or >75mt (or missing magnet) note: pins 1 and 2 (magincn, magdecn) are open drain outputs and require external pull-up resistors. if the magnetic field is in range, bo th outputs are turned off. the two pins may also be combined with a single pull-up resi stor. in this case, the si gnal is high when the magnetic field is in range. it is low in all other cases (see table 3). even parity bit for transmission error detection of bits 1?15 (d9?d0, ocf, cof, lin, magincn, magdecn) the absolute angular output is always set to a resolution of 10 bit. placing the magnet above the chip, angular values increase in clockwise direction by default. data d9:d0 is valid, when the status bi ts have the following configurations: table 4: status bit outputs ocf cof lin mag incn mag decn parity 0 0 0 1 1 0 0 1 0 even checksum of bits 1:15 the absolute angular position is sampled at a rate of 10khz (0.1ms). this allows reading of all 1024 positions per 360 degrees within 0.1 seconds = 9.76hz (~10hz) without skipping any position. multiplying 10hz by 60, results the corresponding maximum rotational speed of 600 rpm. readout of every second angular position allows for rotational speeds of up to 1200rpm. consequently, increasing the rotational speed reduces the num ber of absolute angular posit ions per revolution (see table 7). regardless of the rotational speed or the number of positions to be read out, the absolute angular value is always given at the highest resolution of 10 bit. the incremental outputs are not affected by rotational speed restrictions due to the implemented interpolator. the incremental output signals may be used fo r high-speed applications with rotational speeds of up to 30,000 rpm without missing pulses. daisy chain mode the daisy chain mode allows connection of several as5040?s in series, while still keeping just one digital input for data transfer (see ?data in? in figure 6 below). this mode is accomplished by connecting the data output (do; pin 9) to the data input (prog; pin 8) of the subsequent device. an rc filter must be implemented between each prog pin of device n and do pin of device n+1, to prevent the encoders to enter the alignment mode, in case of esd discharge, long cables, or not conform signal levels or shape. using the values r=100r and c=1nf allow a max. clk frequency of 1mhz on the whole c hain. the serial data of all connected devices is read from the do pin of the first device in the chain. the prog pin of t he last device in the chain should be connec ted to vss. the length of the serial bit stream increases with every connected device, it is n * (16+1) bits: e.g. 34 bit for two devices, 51 bit for three devices, etc? the last data bit of the first device (parity) is followed by a logic low bit and the first data bit of the second device (d9), etc? (see figure 7). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 12 - 33 programming daisy chained devices in daisy chain mode, the prog pin is co nnected directly to the do pin of t he subsequent device in the chain (see figure 6). during programming (see section 12), a programming voltage of 7.5v must be applied to pin prog. this voltage level exceeds the limits for pin do, so one of th e following precautions must be made during programming: ? open the connection do ? prog during programming or ? add a schottky diode between do and prog (anode = do, cathode = prog) due to the parallel connection of clk and csn, a ll connected devices may be programmed simultaneously. figure 6: daisy chain hardware configuration csn prog di clk csn do clk csn do clk prog csn do clk prog 100r 100r 1nf 1nf gnd gnd gnd mcu as5040 as5040 as5040 figure 7: daisy chain mode data transfer even par csn clk do d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 18 1 6 cof lin ocf mag inc mag dec 1 t clk fe angular position data status bits t clk/2 t do active t do valid d 2 d9 d8 d7 1 st device 2 nd device 3 angular position data 8 incremental outputs three different incremental output modes are pos sible with quadrature a/b being the default mode. figure 8 shows the two-channel quadrature as well as the step / direction incr emental signal (lsb) and the direction bit in clockwise (cw) and counter-clockwise (ccw) direction. quadrature a/b output (quad a/b mode) the phase shift between channel a and b indicates the dire ction of the magnet movem ent. channel a leads channel b at a clockwise rotation of the magnet (top view) by 90 electrical degrees. channel b leads channel a at a counter- clockwise rotation. lsb output (step / direction mode) output lsb reflects the lsb (least signi ficant bit) of the programmed incremental resolution (otp register bit div0, div1). output dir provides information about the rotation al direction of the magnet, which may be placed above or below the device (1=clockwise; 0=counter clockwise; top view). dir is updat ed with every lsb change. in both modes (quad a/b, step/direction) the resolution and the index output are user programmable. the index pulse indicates the zero position and is by default one angular step (1lsb) wide. however, it ca n be set to three lsbs by programming the index-bit of the otp register accordingly (see table 6). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 13 - 33 figure 8: incremental output modes counterclockwise ccw a b step / dir-mode quad a/b-mode index=0 1lsb index=1 3 lsb index mechanical zero position lsb dir rotation direction change csn t incremental outputs valid t dir valid hyst = 2 lsb clockwise cw mechanical zero position incremental power-up lock option after power-up, the incremental outputs can optionally be locked or unlocked, depending on the status of the csn pin: csn = low at power-up: csn has an internal pull-up resistor and must be externally pulled low (r ext 5k ). if csn is low at power-up, the incremental outputs (a, b, i ndex) will be high until the internal offset compensation is finished. this unique state (a=b=index = high) may be used as an i ndicator for the external controller to shorten the waiting time at power-up. instead of waiting for the s pecified maximum power up-time (0), the controller can start requesting data from the as5040 as soon as the state (a=b=index = high) is cleared. csn = high or open at power-up: in this mode, the incremental outputs (a, b, index) will remain at logic high state, until csn goes low or a low pulse is applied at csn. this mode allows intentional di sabling of the incremental outputs until for example the system microcontroller is ready to receive data. incremental output hysteresis to avoid flickering incremental outputs at a stat ionary magnet position, a hysteresis is introduced. in case of a rotational direction change, the incr emental outputs have a hy steresis of 2 lsb. regardless of the programmed incrementa l resolution, the hysteresis of 2 ls b always corresponds to the highest resolution of 10 bit. in absolute terms, the hyst eresis is set to 0.704 degrees for all resolutions. for constant rotational directions, every magnet positi on change is indicated at the incremental outputs (see figure 9). if for example the magnet turns clockwise from position ?x+3? to ?x+4 ?, the incremental output would also indicate this position accordingly. a change of the magnet?s rotational direction back to positi on ?x+3? means, that the incr emental output still remains unchanged for the duration of 2 lsb, until position ?x+2? is reached. following this direction, the in cremental outputs will again be updated with every change of the magnet position. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 14 - 33 figure 9: hysteresis windo w for incremental outputs magnet position hysteresis: 0.7 x +2 incremental output indication clockwise direction countercl ockwise dir ect ion x +4 x x x +2 x +4 x + 5 x + 3 x +1 x +1 x +3 9 pulse width modulation (pwm) output the as5040 provides a pulse width modulated output (pwm), w hose duty cycle is proportional to the measured angle: () 1 1025 ? + ? = offon on tt t position the pwm frequency is internally trimmed to an accuracy of 5% ( 10% over full temperature range). this tolerance can be cancelled by measuring the co mplete duty cycle as shown above. figure 10: pwm output signal 1/f pwm angle 359.65 deg (pos 1023) 0 deg (pos 0) 1s 1025s pw min pw max 1024s ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 15 - 33 table 5: pwm signal parameters parameter symbol typ unit note pwm frequency f pwm 0.9756 khz signal period: 1025s min pulse width pw min 1 s - position 0d - angle 0 deg max pulse width pw max 1024 s - position 1023d - angle 359,65 deg 10 analog output an analog output may be generated by averagi ng the pwm signal, using an external ac tive or passive lowpass filter. the analog output voltage is proportional to the angle: 0= 0v; 360 = vdd5v. using this method, the as5040 can be used as direct replacement of potentiometers. figure 11: simple passive 2 nd order lowpass filter r1,r2 4k7 c1,c2 1f / 6v r1 should be 4k7 to avoid loading of the pwm output. larger values of rx and cx will provide better filtering and less ripple, but will also slow down the response time. 11 brushless dc motor commutation mode brushless dc motors require angular information for stator commutation. the as5040 pr ovides u-v-w commutation signals for one and two pole pair motors. in addition to the th ree-phase output signals, the st ep (lsb) output at pin 12 allows high accuracy speed measurement. two resolutions (9 or 10 bit) can be selected by programming div0 according to table 6. mode 3.0 (3.1) is used for brush-less dc motors with one-pole pair rotors. the three phases (u, v, w) are 120 degrees apart, each phase is 180 degrees on and 180 degrees off. mode 3.2 (3.3) is used for motors with two pole pairs r equiring a higher pulse count to ensure a proper current commutation. in this case the pulse width is 256 positions, equal to 90 degrees. the precise physical angle at whic h the u, v and w signals change state (?a ngle? in figure 12 and figure 13) is calculated by multiplying each transition po sition by the angular value of 1 count: angle [deg] = position x (360 degree / 1024) 360 c1 r1 r2 analog out c2 pin12 pwm pin7 vss 0 0v 2 vdd 2 ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 16 - 33 figure 12: u, v and v-signals for bldc motor commutation (div1=0, div0=0) commutation - mode 3.0 (one-pole-pair) u v w position: 0 171 341 512 683 853 0 angle: 0.0 60.12 119.88 180.0 240.12 299.88 360.0 width: 512 steps width: 512 steps cw direction figure 13: u, v and w-signals for 2-pole bldc motor commutation (div1=1; div0=0) commutation - mode 3.2 (two-pole-pairs) u v w position: 0 85 171 256 341 427 512 597 683 768 853 939 0 angle: 0.0 29.88 60.12 90.0 119.88 150.12 180.0 209.88 240.12 270.00 299.88 330.12 360.0 width: 256 steps width: 256 steps cw direction 12 programming the as5040 after power-on, programming the as5040 is enabled with the rising edge of csn with prog = high and clk = low. 16 bit configuration data must be serially shifted into the otp register via the prog-pin. the first ?ccw? bit is followed by the zero position data (msb first) and the incremental mode se tting as shown in table 6. data must be valid at the rising edge of clk (see figure 14). after writing data into the otp register it can be permanently programmed by rising the prog pin to the programming voltage v prog . 16 clk pulses (t prog ) must be applied to program the fuses (figure 15). to exit the programming mode, the chip must be reset by a power-on-reset. the programmed data is available after the next power-up. note: during the programming process, the transitions in the programming current ma y cause high voltage spikes generated by the inductance of the connection cable. to avoid these sp ikes and possible damage to the ic, the connection wires, especially the signals prog and vss must be kept as short as possible. the maximum wire length between the v prog switching transistor and pin prog (see figure 16) should not exceed 50mm (2 inches). to suppress eventual voltage spikes, a 10nf ceramic capacitor should be connected close to pins prog and vss. this capacitor is only required for programming, it is not required for normal operation. the clock timing t clk must be selected at a proper rate to ensure that the signal prog is stable at the rising edge of clk (see figure 14). additionally, the programming supply vo ltage should be buffered with a 10f capacitor mounted close to the switching transistor. this capacitor aids in providing peak currents during programming. the specified programming voltage at pin prog is 7.3 ? 7.5v (see section 0). to compensate for the voltage drop across the v prog switching transistor, the applied programming volt age may be set slightly higher (7.5 - 8.0v, see figure 16). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 17 - 33 otp register contents: ccw counter clockwise bit ccw=0 ? angular value increases in clockwise direction ccw=1 ? angular value increases in counterclockwise direction z [9:0] programmable zero / index position indx index pulse width selection: 1lsb / 3lsb div1,div0 divider setting of incremental output md1, md0 incremental output mode selection otp default setting the as5040 can also be operated without programming. the default, un-programmed setting is shown in table 6 (mode 0.0): ccw: 0 = clockwise operation z9 to z0: 00 = no programmed zero position indx: 0 = index bit width = 1lsb div0,div1 : 00 = incremental resolution = 10bit md0, md1: 00 = incremental mode = quadrature figure 14: programming access ? write data (section of figure 15) figure 15: complete programming sequence data csn prog clk prog 7.5v vdd t load prog t prog finished write data power off programming mode t prog t prgh v progoff t prgr 0v 11 6 ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 18 - 33 figure 16: otp programming connection of as5040 (shown with as5040 demoboard) usb incremental mode programming three different incremental output modes are available. mode: md1=0 / md0=1 sets the as5040 in quadrature mode. mode: md1=1 / md0=0 sets the as 5040 in step / direction mode (see table 1 ) in both modes, the incremental resolution may be reduced from 10 bit down to 9, 8 or 7 bit using the divider otp bits div1 and div0. (see table 6 below ). mode: md1=1 / md0=1 sets the as5040 in brushless dc motor commutation mode with an additional lsb incremental signal at pin 12 (pwm_lsb). to allow programming of all bits, the default factory setting is all bits = 0. this mode is equal to mode 1:0 (quadrature a/b, 1lsb index width, 256ppr). the absolute angular output value, by default, increases with clockwise rotation of the magnet (top view). setting the ccw-bit (see figure 14) allows reversing t he indicated direction, e.g. when the magnet is placed underneath the ic: ccw = 0 ? angular value increases clockwise; ccw = 1 ? angular value in creases counterclockwise. by default, the zero / index position pulse is one lsb wide. it can be increased to a three lsb wide pulse by setting the index-bit of the otp register. further programming options (commutation modes) are available for brushless dc motor-control. md1 = md0 = 1 changes the incr emental output pins 3, 4 and 6 to a 3- phase commutation signal. div1 defines the number of pulses per revolution for either a two- pole (div1=0) or four-pole (div1=1) rotor. in addition, the lsb is available at pin 12 (the lsb signal replaces the pwm signal), which allows for high rotational speed measurement of up to 30,000 rpm. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 19 - 33 table 6: one time programmable (otp) register options otp-mode-register-bit pin # pulses per revolution incremental resolution mode md1 md0 div1 div0 index 3 4 6 12 ppr bit default (mode0.0) 0 0 0* 0* 0* 1lsb quadab-mode1.0 0 1 0 0 0 1lsb quadab-mode1.1 0 1 0 0 1 3lsbs 2x256 10 quadab-mode1.2 0 1 0 1 0 1lsb quadab-mode1.3 0 1 0 1 1 3lsbs 2x128 9 quadab-mode1.4 0 1 1 0 0 1lsb quadab-mode1.5 0 1 1 0 1 3lsbs 2x64 8 quadab-mode1.6 0 1 1 1 0 1lsb quadab-mode1.7 0 1 1 1 1 a b 3lsbs pwm 10 bit 2x32 7 step/dir-mode2.0 1 0 0 0 0 1lsb step/dir-mode2.1 1 0 0 0 1 3lsbs 512 10 step/dir -mode2.2 1 0 0 1 0 1lsb step/dir -mode2.3 1 0 0 1 1 3lsbs 256 9 step/dir -mode2.4 1 0 1 0 0 1lsb step/dir -mode2.5 1 0 1 0 1 3lsbs 128 8 step/dir -mode2.6 1 0 1 1 0 1lsb step/dir -mode2.7 1 0 1 1 1 lsb dir 3lsbs pwm 10 bit 64 7 commutation- mode3.0 1 1 0 0 0 10 commutation- mode3.1 1 1 0 1 0 u(0o) v(120o) w(240o) lsb 3 x 1 9 commutation- mode3.2 1 1 1 0 0 10 commutation- mode3.3 1 1 1 1 0 u? (0o, 180o) v? (60o, 240o) w? (120o, 300o) lsb 2 x 3 9 note: div1, div0 and index cannot be programmed in mode 0:0 zero position programming zero position programming is an otp option that simplifie s assembly of a system, as the magnet does not need to be manually adjusted to the mechanical zero position. once the assembly is completed, the mechanical and electrical zero positions can be matched by software. any position within a full turn can be defined as the permanent new zero/index position. for zero position programming, the magnet is turned to the mechanical zero positi on (e.g. the ?off?-position of a rotary switch) and the actual angular value is read. this value is written into the otp register bits z9:z0 (see figure 14) and programmed as described in section 12. this new absolute zero position is also the new index pulse position for incremental output modes. note: the zero position value may also be modified before programming, e.g. to program an electrical zero position that is 180 (half turn) from the mec hanical zero position, just add 512 to the value read at the mechanical zero position and program the new va lue into the otp register. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 20 - 33 repeated otp programming although a single as5040 otp register bit c an be programmed only once (from 0 to 1) , it is possible to program other, unprogrammed bits in subsequent programming cycles. howeve r, a bit that has already been programmed should not be programmed twice. therefore it is recommended that bits that are already programm ed are set to ?0? during a programming cycle. non-permanent programming it is also possible to re-configure the as5040 in a non-permanent way by overwrit ing the otp register. this procedure is essentially a ?write data? sequence (see figure 14) without a subsequent otp programming cycle. the ?write data? sequence may be applied at any time during normal operation. this configuration remains set while the power supply voltage is above the power-on reset level (see 0). see application note an5000-20 for further information. analog readback mode non-volatile programming (otp) uses on-chip zener diodes , which become permanently low resistive when subjected to a specified reverse current. the quality of the programmi ng process depends on the amount of current that is ap plied during the programming process (up to 130ma). this current must be provided by an external voltage source. if this voltage source cannot provide adequate power, the zener di odes may not be programmed properly. in order to verify the quality of the programmed bits, an analog level can be read for each zener diode, giving an indication whether this particular bit was properly programmed or not. to put the as5040 in analog readback mode, a digital s equence must be applied to pins csn, prog and clk as shown in figure 17. the digital level for this pin depends on the supply configuration (3.3v or 5v; see section 14). the second rising edge on csn (outpen) changes pin prog to a digital output and the log. high signal at pin prog must be removed to avoid collision of outputs (grey area in figure 17). the following falling slope of csn changes pin prog to an analog output, providing a reference voltage v ref , that must be saved as a reference for the calculation of the subsequent programmed and unprogrammed otp bits. following this step, each rising slope of clk outputs one bit of data in the reverse order as during programming. (see figure 17: md0-md1-div0,div1-indx-z0?z9, ccw) during analog readback, the capacitor at pin prog (see figure 16) should be removed to allow a fast readout rate. . if the capacitor is not removed the analog voltage will take longer to stabilize due to the additional capacitance. the measured analog voltage for each bit must be subtracted from the previously measured v ref , and the resulting value gives an indication on the quality of the programmed bit: a reading of <100mv indicates a properly programmed bit and a reading of >1v indicates a properly unprogrammed bit. a reading between 100mv and 1v indicates a faulty bit, which may result in an undefined digital value, when the otp is read at power-up. following the 16 th clock (after reading bit ?ccw?), the chip must be reset by disconnecting the power supply. figure 17: otp register analog read internal test bit digital v unpro g ram m ed v pro g ram m ed csn clk 1 16 prog progen md1 md0 analog readback data at prog outpen t loadprog clk a read prog changes to output v ref power-on- reset; turn off supply div1 div0 z6 z5 z8 z7 ccw z9 ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 21 - 33 13 alignment mode the alignment mode simplifies centeri ng the magnet over the chip to gain maximum accuracy and xy-alignment tolerance. this electrical centering method allows a wider xy-ali gnment tolerance (0.485mm radius) than mechanical centering (0.25mm radius) as it eliminates the placement tolerance of the die within the ic package (+/- 0.235mm). alignment mode can be enabled with the fa lling edge of csn while prog = logic high (figure 18). the data bits d9-d0 of the ssi change to a 10-bit displacement amplitude output. a high value indicates large x or y displacement, but also higher absolute magnetic field st rength. the magnet is properly aligned, when the difference between highest and lowest value over one full turn is at a minimum. under normal conditions, a properly aligned magnet will result in a reading of less than 32 over a full turn. the magincn and magdecn indicators will be = 1 when the alignment mode reading is < 32. at the same time, both hardware pins magincn (#1) and magdec n (#2) will be pulled to vss. a pr operly aligned magnet will therefore produce a magincn = magdecn = 1 signal throughout a full 360 turn of the magnet. stronger magnets or short gaps between magnet and ic may show values la rger than 32. these magnets are still properly aligned as long as the difference between highest and lowest value over one full turn is at a minimum. the alignment mode can be reset to normal operation mode by a power-on-reset (disconnect / re-connect power supply). figure 18: enabling the alignment mode alignmode enable prog csn read-out via ssi 2s min. 2s min. 14 3.3v / 5v operation the as5040 operates either at 3.3v 10% or at 5v 10%. this is made possible by an internal 3.3v low-dropout (ldo) voltage regulator. the internal supply voltage is alwa ys taken from the output of the ldo, meaning that the internal blocks are always operating at 3.3v. for 3.3v operation, the ldo must be bypassed by connecting vdd3v3 with vdd5v (see figure 19). for 5v operation, the 5v supply is connected to pin vdd5v, while vdd3v3 (ldo output) must be buffered by a 2.2...10f capacitor, which is supposed to be placed close to the supply pin (see figure 19). the vdd3v3 output is intended for internal use onl y it must not be loaded with an external load. the output voltage of the digital interf ace i/o?s corresponds to the voltage at pin vdd5v, as the i/o buffers are supplied from this pin (see figure 19). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 22 - 33 figure 19: connections for 5v / 3.3v supply voltages ldo i n t e r f a c e 2.2...10f 100n 4.5 - 5.5v do prog index_w b_dir_v a_lsb_u clk pwm_lsb vdd3v3 vss vdd5v 5v operation internal vdd csn ldo 100n 3.0 - 3.6v vdd3v3 vss vdd5v 3.3v operation internal vdd i n t e r f a c e do prog index_w b_dir_v a_lsb_u clk pwm_lsb csn a buffer capacitor of 100nf is recommended in both cases cl ose to pin vdd5v. note that pin vdd3v3 must always be buffered by a capacitor. it must not be left floating, as this may cause an instable internal 3.3v supply voltage which may lead to larger than normal jitter of the measured angle. 15 choosing the proper magnet typically the magnet should be 6mm in diameter and 2.5mm in height. magnetic mate rials such as rare earth alnico, smco5 or ndfeb are recommended. the magnet?s field strength perpendicular to the die surface should be verified using a gauss-meter. the magnetic field b v at a given distance, along a concentric circle with a radius of 1.1mm (r1), should be in the range of 45mt?75mt. (see figure 20). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 23 - 33 figure 20: typical magnet and magnetic field distribution n s magnet axis vertical field component (45?75mt) 0 360 bv vertical field component r1 concentric circle; radius 1.1mm r1 magnet axis typ. 6mm diameter s n physical placement of the magnet the best linearity can be achieved by plac ing the center of the magnet exactl y over the defined center of the ic package as shown in figure 21: figure 21: defined ic center and magnet displacement radius 1 defined center 2.433 mm 2.433 mm 3.9 mm 3.9 mm a rea of recommended maximum magnet misalignment r d magnet placement the magnet?s center axis should be aligned within a displacement radius r d of 0.25mm from the defined center of the ic with reference to the edge of pin #1 (see figure 21). this r adius includes the placement tolerance of the chip within the ssop-16 package (+/- 0.235mm) . the displacement radius r d is 0.485mm with reference to the center of the chip (see section 13: alignment mode) ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 24 - 33 the vertical distance should be chosen such that the magnetic field on the die surface is within the specified limits (see figure 20). the typical distance ?z? between the m agnet and the package surface is 0.5mm to 1.8mm with the recommended magnet (6mm x 2.5mm). larger gaps are possible, as long as the required magnetic field strength stays within the defined limits. a magnetic field outside the s pecified range may still produce usable resu lts, but the out-of-range condition will be indicated by magincn (pin 1) and magdecn (pin 2), see table 3. figure 22: vertical placement of the magnet 1.282mm 0.15mm 0.576mm 0.1mm z s n package surface die surface 16 simulation modelling figure 23: arrangement of hall sens or array on chip (principle) with reference to figure 23, a diametrically magnetized permanent magnet is placed abov e or below the surface of the as5040. the chip uses an array of hall sensors to sample the vertical vector of a magnet ic field distributed across the device package surface. the area of magnetic sensitivity is a circular locus of 1.1mm radius with respect to the center of the die. the hall sensor s in the area of magnetic sensitivit y are grouped and configured such that orthogonally related components of the magnet ic fields are sampled differentially. the differential signal y1-y2 will give a sine vector of t he magnetic field. the different ial signal x1-x2 will give an orthogonally related cosine vect or of the magnetic field. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 25 - 33 the angular displacement ( ) of the magnetic source with reference to the hall sensor array may then be modelled by: () () ? ? = 5.0 21 21 arctan xx yy the 0.5 angular error assumes a magnet optimally aligned ov er the center of the die and is a result of gain mismatch errors of the as5040. placement to lerances of the die within the package are 0.235mm in x and y direction, using a reference point of the edge of pin #1 (figure 23). in order to neglect the influence of external disturbing magnetic fields, a robust differential sampling and ratiometric calculation algorithm has been implem ented. the differential sampling of t he sine and cosine vectors removes any common mode error due to dc components introduced by the magnet ic source itself or exte rnal disturbing magnetic fields. a ratiometric division of the sine and cosine vectors removes the need for an accurate absolute magnitude of the magnetic field and thus accurate z-ax is alignment of the magnetic source. the recommended differential input r ange of the magnetic field strength (b (x1-x2) ,b (y1-y2) ) is 75mt at the surface of the die. in addition to this range, an additional offset of 5mt, caused by unwanted external stray fields is allowed. the chip will continue to operate, bu t with degraded output linearity, if the si gnal field strength is outside the recommended range. too strong magnetic fields will introduce errors due to saturation effects in the internal preamplifiers. too weak magnetic fields will intr oduce errors due to noise becoming more dominant. 17 failure diagnostics the as5040 also offers several diagnostic and failure detection features: magnetic field stre ngth diagnosis by software: the magincn and magdecn status bits will both be high when the magnetic field is out of range. by hardware: pins #1 (magincn) and #2 (magdecn) are open-drain outputs and will both be turned on (= low with external pull-up resistor) when the magnetic field is out of range. if only one of the outputs is low, the magnet is either moving towards the chip (magincn) or away from the chip (magdecn). power supply failure detection by software: if the power supply to the as5040 is interrupted, the digital data read by the ssi will be all ?0?s. data is only valid, when bit ocf is high, hence a data stream with a ll ?0?s is invalid. to ensure adequate low levels in the failure case, a pull-down resistor (~10k ) should be added between pin do and vss at the receiving side. by hardware: the magincn and magdecn pins are open drain out puts and require external pull-up resistors. in normal operation, these pins ar e high ohmic and the outputs are hi gh (see table 3). in a failure case, either when the magnetic field is out of r ange or the power supply is mi ssing, these outputs will becom e low. to ensure adequate low levels in case of a broken power suppl y to the as5040, the pull-up resistors (>10k ) from each pin must be connected to the positive supply at pin 16 (vdd5v). by hardware: pwm output: the pwm output is a constant stream of pulses with 1khz repetition frequency. in case of power loss, these pulses are missing. by hardware: incremental outputs: in normal operation, pins a(#3), b(#4) and inde x (#6) will never be high at the same time, as index is only high when a=b=low. however, af ter a power-on-reset, if vdd is powered up or restarts after a power supply interruption, all three outputs will rema in in high state until pin csn is pulled low. if csn is already tied to vss during power-up, the incremental outputs will all be high until the internal offset compensation is finished (within t pwrup ). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 26 - 33 18 angular output tolerances accuracy accuracy is defined as the error between measured angle and actual angle. it is influenced by several factors: ? the non-linearity of the anal og-digital converters, ? internal gain and mismatch errors, ? non-linearity due to misalignment of the magnet as a sum of all these errors, the accuracy with centered magnet = (err max ? err min )/2 is specified as better than r 0.5 degrees @ 25c (see figure 25). misalignment of the magnet further r educes the accuracy. figure 24 shows an example of a 3d-graph displaying non- linearity over xy-misalignment. the center of the square xy-area corresponds to a centered magnet (see dot in the center of the graph). the x- and y- axis extends to a misalignment of r 1mm in both directions. the total misalignment area of the graph covers a square of 2x2 mm (79x79mil) with a step size of 100m. for each misalignment step, the measurement as shown in figure 25 is repeated and the accuracy (err max ? err min )/2 (e.g. 0.25 in figure 25) is entered as the z-axis in the 3d-graph. figure 24: example of linearity error over xy misalignment -1000 -800 -600 -400 -200 0 200 400 600 800 1000 -1000 -800 -600 -400 -200 0 200 400 600 800 1000 0 1 2 3 4 5 6 x y linearity error over xy-misalignment [] the maximum non-linearity error on this example is better than r 1 degree (inner circle) over a misalignment radius of ~0.7mm. for volume production, the placement tolerance of the ic within the package ( r 0.235mm) must also be taken into account. the total nonlinearity error over process tolerances, tem perature and a misalignment ci rcle radius of 0.25mm is specified better than r 1.4 degrees. the magnet used for this measurement was a cylindrical ndfeb (bomatec? bmn-35h) magnet with 6mm diameter and 2.5mm in height. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 27 - 33 figure 25: example of linearity error over 360 transition noise transition noise is defined as the jitter in the transition between two steps. due to the nature of the measurement principle (hall sensors + preamplifie r + adc), there is always a certain degree of noise involved. this transition noise voltage results in an angular transition noise at the outputs. it is specified as 0.12 degrees rms (1 sigma) *1 . this is the repeatability of an indica ted angle at a given mechanical position. the transition noise has different implicatio ns on the type of output that is used: ? absolute output; ssi interface: the transition noise of the absolute output can be reduced by the user by applying an averaging of readings. an averaging of 4 readings will reduce the transition noise by 6db or 50%, e.g. from 0.12rms to 0.06rms (1 sigma). ? pwm interface: if the pwm interface is used as an analog output by adding a low pass filter, the transition noise can be reduced by lowering the cutoff frequency of the filter. if the pwm interface is used as a di gital interface with a counter at th e receiving side, the transition noise may again be reduced by averaging of readings. ? incremental mode: in incremental mode, the transition noise influences the period, width and phase shif t of the output signals a, b and index. however, the algorithm used to generate the incremental outputs guarantees no missing or additional pulses even at high speeds (up to 30,000 rpm and higher) *1 : statistically, 1 sigma repr esents 68.27% of readings, 3 sigma represents 99.73% of readings. linearit y error with centered ma g net [ de g rees ] -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 1 55 109 163 217 271 325 379 433 487 541 595 649 703 757 811 865 919 973 transition noise err max err mi ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 28 - 33 high speed operation sampling rate the as5040 samples the angular value at a rate of 10.42 k samples per second. cons equently, the incremental, as well as the absolute outputs are updated each 96s. at a stationary position of the magnet, this sampling rate creates no additional error. absolute mode with serial communication: with the given sampling rate of 10.4 khz, the number of samples (n) per turn for a magnet rotating at high speed can be calculated by: srpm n 96 60 ? = in practice, there is no upper speed limit. the only restriction is that there will be fewer samples per revolution as the speed increases. regardless of the rotational speed, the absolute angular value is always sampled at the highest resolution of 10 bit. likewise, for a given number of samples per revo lution (n), the maximum speed can be calculated by: sn rpm 96 60 ? = in absolute mode with serial communication, 610 rpm is the maximum speed, where 1024 readings per revolution can be obtained. in incremental mode, the maximum error caused by the sampli ng rate of the adcs is 0/+ 96s. it has a peak of 1lsb = 0.35 at 610 rpm. at higher speeds this error is reduced again due to interpolation and the output delay remains at 192s as the dsp requires two sampling periods (2x96s ) to synthesize and redistribute any missing pulses. absolute mode with pwm: the principle is the same as with the serial communicati on. the pwm output is refreshed with a rate of 1.025ms, the number of samples (n) per turn for a magnet rotating at high speed can be calculated by: ms rpm n 025.1 60 ? = in absolute mode with pwm output, 57 rpm is the ma ximum speed, where 1024 readings per revolution can be obtained. incremental mode: incremental encoders are usually required to produce no missing pulses up to several thousand rpm?s. therefore, the as5040 has a built-in inte rpolator, which ensures t hat there are no missing pul ses at the incremental outputs for rotational speeds of up to 30,000 rpm, even at the highest resolution of 10 bits ( 512 pulses per revolution). table 7: speed performance absolute output mode incremental output mode 610rpm = 1024 samples / turn 1220rpm = 512 samples / turn 2441rpm = 256 samples / turn etc? no missing pulses @ 10 bit resolution (512ppr): max. speed = 30,000 rpm propagation delays the propagation delay is the delay between the time that a sample is taken until it is converted and available as angular data. this delay is 48s for the absolute interface and 192s for the incremental interface. using the ssi interface for absolut e data transmission, an additional delay must be considered, caused by the asynchronous sampling (t= 0?1/f s ) and the time it takes the external co ntrol unit to read and process the data. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 29 - 33 angular error caused by propagation delay a rotating magnet will therefore cause an angular error caus ed by the output delay. this error increases linearly with speed: delayprop rpm e sampling .*6 ?= where: e sampling = angular error [] rpm = rotating speed [rpm] prop.delay = propagation delay [seconds] note: since the propagation delay is known, it can be automatically compensated by the control unit that is processing the data from the as5040, thus reducin g the angular error caused by speed. internal timi ng tolerance the as5040 does not require an external ceramic resonator or quartz. all internal clock timings for the as5040 are generated by an on-chip rc oscillator. this oscillator is factory trimmed to 5% accuracy at room temperature ( 10% over full temperature range). this to lerance influences the adc sampling rate and the pulse width of the pwm output: ? absolute output; ssi interface: a new angular value is updated every 100s (typ.) ? incremental outputs: the incremental outputs are updated every 100s (typ.) ? pwm output: a new angular value is updated every 100s (typ.). the pwm pulse timings t on and t off also have the same tolerance as the internal oscillator. if only the pwm pulse width t on is used to measure the angle, the resulting value also has this timing tolerance. however, this tolerance can be cancelled by measuring both t on and t off and calculating the angle from the duty cycle (see section 9): () 1 1025 ? + ? = offon on tt t position temperature magnetic temperature coefficient one of the major benefits of the as5040 compared to linear hall sensors is that it is much less sensitive to temperature. while linear hall sensors require a compensa tion of the magnet?s temperat ure coefficient, the as5040 automatically compensates for the varyi ng magnetic field strength over temper ature. the magnet?s temperature drift does not need to be considered, as the as5040 operates with magnetic field strengths from 45? 75mt. example: a ndfeb magnet has a field strength of 75mt @ ?40c a nd a temperature coefficient of -0.12% per kelvin. the temperature change is from ?40 to +125 = 165k. the magnetic field change is: 165 x -0. 12% = -19.8%, which corresponds to 75mt at ?40c and 60mt at 125c. the as5040 can compensate for this temperature related fi eld strength change automatica lly, no user adjustment is required. accuracy over temperature the influence of temperature in the absolute accu racy is very low. while the accuracy is 0.5 at room temperature, it may increase to ? 0.9 due to increasing noise at high temperatures. ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 30 - 33 timing tolerance over temperature the internal rc oscillator is factory trimmed to 5%. over temperature, this tolerance may increase to 10%. generally, the timing tolerance has no influence in the accuracy or resolution of the system, as it is used mainly for internal clock generation. the only concern to the user is the widt h of the pwm output pulse, which relates di rectly to the timing tolerance of the internal oscillator. this influence however can be cancelle d by measuring the complete pwm duty cycle (see internal timing tolerance). ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 31 - 33 19 package drawings and markings figure 26: 16-lead shrink small outline package ssop-16 dimensions mm inch symbol min typ max min typ max a 1.73 1.86 1.99 .068 .073 .078 a1 0.05 0.13 0. 21 .002 .005 .008 a2 1.68 1.73 1. 78 .066 .068 .070 b 0.25 0.315 0.38 .010 .012 .015 c 0.09 - 0.20 .004 - .008 d 6.07 6.20 6.33 .239 .244 .249 e 7.65 7.8 7.9 .301 .307 .311 e1 5.2 5.3 5. 38 .205 .209 .212 e 0.65 .0256 k 0 - 8 0 - 8 l 0.63 0.75 0.95 .025 .030 .037 aywwizz as5040 marking: aywwizz a: pb-free identifier y: last digit of manufacturing year ww: manufacturing week i: plant identifier zz: traceability code jedec package outline standard: mo - 150 ac thermal resistance r th(j-a) : typ. 151 k/w in still air, soldered on pcb ic's marked with a white dot or the letters "es" denote engineering samples ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 32 - 33 20 packing options delivery: tape and reel (1 reel = 2000 devices) tubes (1 box = 100 tubes 77 devices) order # as5040assu for delivery in tubes order # as5040asst for delivery in tape and reel 21 recommended pcb footprint recommended footprint data mm inch a 9.02 0.355 b 6.16 0.242 c 0.46 0.018 d 0.65 0.025 e 5.01 0.197 ams ag technical content still valid
as5040 data sheet www.austriamicrosystems.com revision 2.10 33 - 33 22 copyrights copyright ? 1997-2009, austriamicrosyste ms ag, schloss premstaetten, 8141 un terpremstaetten, austria-europe. trademarks registered ?. all rights reserved. the ma terial herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written cons ent of the copyright owner. all products and companies mentioned ar e trademarks or registered trademarks of their respective companies. 23 disclaimer devices sold by austriamicrosystems ag are covered by the warranty and patent indemnification provisions appearing in its term of sale. austriamicrosystems ag makes no wa rranty, express, statutory, implied, or by description regarding the information set forth herein or regarding the freedom of the descri bed devices from patent infringement. austriamicrosystems ag reserves the right to change specifications and pric es at any time and without notice. therefore, prior to designing this product into a system, it is necessary to check with austriamicrosystems ag for current information. this product is intended for use in normal commer cial applications. applications requiring extended temperature range, unusual environmental requirements, or high re liability applications, such as military, medical life-support or lifesustaining equipment are specifically not reco mmended without additional processing by austriamicrosystems ag for each application. the information furnished here by austriamicrosystems ag is believed to be correct and accurate. however, austriamicrosystems ag shall not be liabl e to recipient or any third party for any damages, including but not limited to personal injury, property damage, loss of prof its, loss of use, interruption of busi ness or indirect, special, incidental or consequential damages, of any kind, in connec tion with or arising out of the fu rnishing, performance or use of the technical data herein. no obligation or liability to reci pient or any third party s hall arise or flow out of austriamicrosystems ag rendering of technical or other services. contact information headquarters austriamicrosystems ag a-8141 schloss premstaetten, austria tel: +43 (0) 3136 500 0 fax: +43 (0) 3136 525 01 for sales offices, distributors and representatives, please visit: http://www.austriamicrosystems.com/contact ams ag technical content still valid


▲Up To Search▲   

 
Price & Availability of AS504009

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X